package cn.boat.router.consumer;

import org.apache.zookeeper.ZooKeeper;
import org.junit.Test;

import java.util.List;

public class Demo111 {
    /*public static final String IP = "39.106.77.77:2181";
    ZooKeeper zooKeeper =null;
    @Test
    public void test1()throws Exception {
        GetConsumerMetaDataImpl getConsumerMetaData = new GetConsumerMetaDataImpl();
        List<ConsumerMetaData> consumerMetaDataList = getConsumerMetaData.getConsumerMetaData(IP);
        for (ConsumerMetaData consumerMetaData : consumerMetaDataList) {
            System.out.println(consumerMetaData);
        }

    }*/
    @Test
    public void test2() throws Exception {
        GetZookeeperProperties getZookeeperProperties = new GetZookeeperProperties();
        getZookeeperProperties.getPropertiesByName();
        System.out.println(getZookeeperProperties.getZookeeperIpPort());
    }
}
